package com.designPattern.strategy;

/**
 * @Auther: zwg
 * @Date: 2019/2/20 11:18
 * @Description:
 */
public class CalculatorContext {
    private Strategy strategy;

    public CalculatorContext(Strategy strategy) {
        this.strategy = strategy;
    }

    public int calculat(int a,int b){
        return strategy.calculator(a, b);
    }
}
